import pytest
@pytest.mark.run(order=1)
def test_a():
    print("\ntest_a")

@pytest.mark.run(order=0)
def test_b():
    print("\ntest_b")

@pytest.mark.run(order=2)
def test_c():
    print("\ntest_c")

if __name__ == '__main__':
    pytest.main(["-s","test-order.py"])